﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<Sys.WebRes.Publish.Areas.Admin.Models.ProductModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditItems
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
<style>

</style>
<script language="javascript" type="text/javascript">
    $().ready(function () {
        
    });
</script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" runat="server">
    <% using (Html.BeginForm(null, null, FormMethod.Post, new {enctype="multipart/form-data"})) {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.ID) %>
        <%= Html.HiddenFor(model => model.ResTypeID)%>
        <%= Html.HiddenFor(model => model.AutoSave) %>
        <fieldset>
            <legend>产品数据项</legend>
            <table style="width:100%">
                <%Html.RenderPartial("SectionInfoView", Model); %>
                <tr><td class="editor-label">
                    <label for="Name">名 称</label>
                </td>
                <td class="editor-field">
                    <%= Html.TextBoxFor(model => model.Name, new { @size = 50, @maxlength = 50 })%>
                    <%= Html.ValidationMessageFor(model => model.Name) %>
                </td>
                </tr>

                <tr><td class="editor-label">
                    <label for="Keywords">关键字</label>
                </td>
                <td class="editor-field">
                    <%= Html.TextBoxFor(model => model.Keywords, new { @size = 50, @maxlength = 100 })%>
                    <label for="Keywords">逗号分开(*搜索引擎优化)</label>
                    <%= Html.ValidationMessageFor(model => model.Keywords) %>
                </td>
                </tr>

                <tr><td class="editor-label" style="height:50px;">
                    <label for="Keywords">标 签</label>
                </td>
                <td class="editor-field">
                    <%= Html.TextBoxFor(model => model.Tags, new{@size = 50})%><label for="Tags">使用逗号分割标签</label>
                </td>
                </tr>

                <tr><td class="editor-label">
                    <label for="Summary">说 明</label>
                </td>
                <td class="editor-field">
                    <%= Html.TextAreaFor(model => model.Summary, new{@rows = 3, @cols = 65})%>
                    <%= Html.ValidationMessageFor(model => model.Summary) %>
                </td>
                </tr>

                <tr><td class="editor-label">
                    <label for="Contents">产品详细</label><br />
                </td>
                <td class="editor-field" style="vertical-align:top;">
                    <div id="editorPanel">
                    <table id="ExtTable" width="60%">
                        <tr>
                            <th class="w50"><label for="Product_ProductID" class="black">编号</label></th>
                            <td><%=Html.TextBoxFor(m=>m.Product.ProductID) %></td>
                            <th class="w50"><label for="Product_Type" class="black">型号</label></th>
                            <td><%=Html.TextBoxFor(m=>m.Product.Type) %></td>
                        </tr>
                        <tr>
                            <th><label for="Product_Price" class="black">零售价格</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.Price)%></td>
                            <th><label for="Product_WPrice" class="black">批发价格</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.WPrice)%></td>
                        </tr>
                        <tr>
                            <th><label for="Product_Quantity" class="black">数量</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.Quantity)%></td>
                            <th><label for="Product_Color" class="black">颜色</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.Color)%></td>
                        </tr>
                        <tr>
                            <th><label for="Product_Size" class="black">尺寸</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.Size)%></td>
                            <th><label for="Product_Weight" class="black">重量</label></th>
                            <td><%=Html.TextBoxFor(m => m.Product.Weight)%></td>
                        </tr>
                        <tr>
                            <th><label for="Product_SellUrl" class="black">销售地址</label></th>
                            <td colspan="3"><%=Html.TextBoxFor(m => m.Product.SellUrl, new { @size=80 })%></td>
                        </tr>
                    </table>
                    </div>
                </td>
                </tr>
                <tr><td class="editor-label">
                    <label for="">关联资源</label>
                </td>
                <td class="editor-field">
                    关联到
                    <br /><br /><br />
                </td>
                </tr>
                <%Html.RenderPartial("CreatInfoView", Model); %>
                <%Html.RenderPartial("CountInfoView", Model); %>
                <%Html.RenderPartial("GlobalInfoView", Model);%>
                <%Html.RenderPartial("StatusInfoView", Model);%>
            </table>
            
            <p style="text-align:center;height:100px;">
            <a class="easyui-linkbutton" href="javascript:document.forms[0].submit();" onclick="">保 存</a>
            <a class="easyui-linkbutton" href="javascript:void(0)" onclick="">取 消</a>
            </p>
        </fieldset>

    <% } %>
</asp:Content>

